package com.dfrz.ch08;

import com.dfrz.ch09.Computer;

/**
 * 作者：wangmaokang
 * 日期: 2021/4/19 10:54
 * 描述:
 */
public class ComputerTest {
    public static void main(String[] args) {

//        Date
        Computer computer=new Computer();
//        computer.brand="华为";
        computer.color="黑色";
//        computer.cpu="i7";
//        computer.memory="16G";


        computer.work=-1;

        computer.open(); //调用打开
        System.out.println(computer.toString());

        computer.sleep(); //调用休眠
        System.out.println(computer.toString());

        computer.close(); //调用关闭
        System.out.println(computer.toString());

    }
}
